home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12900 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!pires.demon.co.uk
  2. From: Martin Bonner <mbonner@pires.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Coding Standards
  5. Date: Fri, 22 Mar 1996 08:50:23 GMT
  6. Organization: Pi Technology Ltd
  7. Distribution: world
  8. Message-ID: <530361771wnr@pires.co.uk>
  9. References: <4i47qr$q5e@news.halcyon.com> <4hj8ek$elu@sam.inforamp.net> <4hjh5c$elk@flood.weeg.uiowa.edu> <4hv2tm$e93@news.halcyon.com> <4i1ne4$g99@clarknet.clark.net>
  10. Reply-To: mbonner@pires.co.uk
  11. X-NNTP-Posting-Host: pires.demon.co.uk
  12. X-Broken-Date: Friday, Mar 22, 1996 08.50.23 GMT
  13. X-Newsreader: Newswin Alpha 0.6
  14. X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!pires.demon.co.uk
  15.  
  16. >Norm Bryar (normanb@halcyon.com) wrote:
  17. >: Except you can't put consts in a header for everyone to use and you
  18. Err, yes you can.  By default
  19.     const int foo = 5;
  20. has static (file) linkage, so each file has its own copy of "foo".  
  21. Provided you don't want to take the address of "foo" (which you 
  22. couldn't do with a #define), this all works.
  23. -- 
  24. Martin Bonner
  25. Pi Technology, Milton Hall, Cambridge, ENGLAND
  26. +44 1223 441256
  27. mbonner@pires.co.uk
  28.  
  29.